package com.qf.boot2203.controller;

import com.qf.boot2203.annotation.NullValidate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class NullValidateController {

    @NullValidate
    @GetMapping("/user")
    public String user(String username, String password){

        return "hello" + username + "密码" + password;
    }
}
